package main

import (
	"fmt"
	"net/http"
)

func serverStart() {
	http.HandleFunc("/test", handler)
	// http.ListenAndServe(":9898", nil)
	http.ListenAndServeTLS(":9898", "/Users/blue7/work/go-workplace/go-https/cert/rootCA.crt", "/Users/blue7/work/go-workplace/go-https/cert/rootCA.key", nil)
}

func handler(w http.ResponseWriter, r *http.Request) {
	fmt.Fprintf(w, "测试!")
}
